﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SelectUserLeft.aspx.cs" Inherits="admin_SelectUserLeft" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>选择人员</title>
    <link rel="Stylesheet" type="text/css" href="../Styles/right_style.css" />
    <script type="text/javascript" src="../Scripts/jquery.ui/js/jquery.js"></script>
    <style type="text/css">
    <!--
    html{ scrollbar-base-color: #dbecf8; scrollbar-arrow-color: #2a8ed1; scrollbar-track-color: #bdddf2; scrollbar-3dlight-color: #2886c5; scrollbar-darkshadow-color: #2886c5;
    scrollbar-face-color: #dbecf8; scrollbar-shadow-color: #dbecf8;  }
    -->
    </style>
    <base target="_self"></base>
</head>
<%     
    Response.Buffer = true;
    Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1);
    Response.Expires = 0;
    Response.CacheControl = "no-cache";   
%>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="width: 340px" cellpadding="1" cellspacing="1">
            <tr>
                <td align="center" style="height: 20px; width: 163px;">
                    <asp:HyperLink ID="HyperLink1" runat="server" Width="120px" NavigateUrl="#" 
                        BorderColor="#E0E0E0" Font-Underline="False" Font-Bold="True" Font-Size="14px">按部门选择</asp:HyperLink>
                </td>
                <td align="center" style="height: 20px">
                </td>
            </tr>
            <tr>
                <td style="height: 170px; width: 163px;">
                    <asp:Panel ID="Panel1" runat="server" Height="150px" ScrollBars="Auto" Width="160px">
                        <asp:TreeView ID="TreeView1" runat="server" ShowLines="True"
                            Font-Size="12px" OnSelectedNodeChanged="TreeView1_SelectedNodeChanged" 
                            ImageSet="Arrows">
                        </asp:TreeView>
                    </asp:Panel>
                </td>
                <td align="center" rowspan="2" valign="top">
                    <asp:Panel ID="Panel2" runat="server" ScrollBars="Auto" Width="170px" Height="230px">
                        <asp:DataList ID="DataList2" runat="server"
                            BorderStyle="None" BorderWidth="1px" CellPadding="3" 
                            GridLines="Horizontal" Width="170px"
                            OnItemCommand="DataList2_ItemCommand">
                            <FooterStyle BackColor="#B5C7DE" ForeColor="Black" CssClass="itemhead" />
                            <SelectedItemStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument='<%# Eval("UserId") %>'
                                    Text='<%# Eval("UserName") %>' CommandName="selectUser"></asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle BackColor="White" ForeColor="Black" />
                            <HeaderTemplate>
                                <asp:Label ID="Label2" runat="server" Text="选择人员"></asp:Label>
                            </HeaderTemplate>
                            <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="Black" CssClass="itemhead" />
                        </asp:DataList></asp:Panel>
                </td>
            </tr>
            <tr>
                <td align="center" style="width: 163px">
                    <asp:DataList ID="DataList1" runat="server"
                        BorderStyle="None" BorderWidth="1px" CellPadding="3" DataSourceID="PopedomGroupDataSource"
                        GridLines="Horizontal" Width="160px" OnItemCommand="DataList1_ItemCommand">
                        <FooterStyle BackColor="#B5C7DE" ForeColor="Black" CssClass="itemhead" />
                        <SelectedItemStyle BackColor="#738A9C" ForeColor="#F7F7F7" />
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%# Eval("PopedomGroupId") %>'
                                Text='<%# Eval("PopedomGroupName") %>' CommandName="getUser"></asp:LinkButton>
                        </ItemTemplate>
                        <AlternatingItemStyle BackColor="#F7F7F7" />
                        <ItemStyle BackColor="White"/>
                        <HeaderTemplate>
                            <asp:Label ID="Label1" runat="server" Text="按角色选择"></asp:Label>
                        </HeaderTemplate>
                        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" CssClass="itemhead" />
                    </asp:DataList>
                </td>
            </tr>
            <tr>
                <td align="center" colspan="2" valign="top">
                    <input id="btnClose" style="font-size: 12px" type="button" value="关闭" onclick="window.close()" />
                </td>
            </tr>
        </table>
        <asp:ObjectDataSource ID="PopedomGroupDataSource" runat="server" SelectMethod="FindAll"
            TypeName="TarreOA.TarreOABLL.PopedomGroupManager"></asp:ObjectDataSource>
    </div>
    </form>
</body>
</html>
